package com.yuanian.timingwheel.cron;

import java.text.ParseException;
import java.util.Date;

public class Demo1 {
    public static void main(String[] args) throws ParseException {
        System.out.println(new Date());
        Date nextValidTime = new CronExpression("*/5 * * * * ?").getNextValidTimeAfter(new Date());

        System.out.println(nextValidTime);


    }
}
